import java.util.Arrays;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User: Administrator
 * Data: 2023 - 07 - 03
 * Time: 13:48
 */
public class Practice1 {
    public static void main(String[] args) {
        ListNode node1 = new ListNode(1);
        ListNode node2 = new ListNode(3);
        ListNode node3 = new ListNode(2);
        node1.next = node2;
        node2.next = node3;
        Solution solution = new Solution();
        int[] array = solution.reversePrint(node1);
        System.out.println(Arrays.toString(array));
    }
}
